package com.youpai.platform.biggod.service.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

/**
 * @time: 2022/8/1 4:14 下午
 * @author: welles
 * @description: 品类PO
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_category")
public class CategoryPO{

    /**
     * 唯一主键 ID
     */
    protected Long id;

    /**
     * 品类id
     */
    private Long categoryId;

    /**
     * 品类名称
     */
    private String categoryName;

    /**
     * 品类描述
     */
    private String categoryDesc;

    /**
     * 当前品类单位
     */
    private String categoryUnit;

    /**
     * 品类图标
     */
    private String categoryImg;

    /**
     * 删除标记
     */
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    private Timestamp createTime;

    /**
     * 最后修改时间
     */
    private Timestamp updateTime;

    public CategoryPO(){}

    public CategoryPO(Long categoryId, String categoryName, String categoryDesc, String categoryUnit, String categoryImg) {
        setCategoryId(categoryId);
        setCategoryName(categoryName);
        setCategoryDesc(categoryDesc);
        setCategoryUnit(categoryUnit);
        setCategoryImg(categoryImg);
    }
}
